<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=9, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- label标签可以增加用户体验 -->
    <label for="text">用户名</label><input type="text" id="text"><br>
    <label for="radio">男</label><input type="radio" id="radio" name="sex"><br>
    <input type="radio" id="2" name="sex"><label for="2">女</label>
</body>
</html>